import Group from './components/group'
import Header from './components/header'
import Icon from './components/icon'
const malt = {
  Group,
  Header,
  Icon
}

const install = (Vue, options = {}) => {
  Object.keys(malt).forEach((key) => {
    let comp = malt[key]
    Vue.component(comp.name, comp)
  })
}

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue)
}

export default Object.assign(malt, {install})
